package com.ylpms.agme.service;

import com.ylpms.agme.dao.AreaDao;
import com.ylpms.agme.entity.AreaEntity;
import com.ylpms.mysql.config.TargetDataSource;
import com.ylpms.too.Table;
import com.ylpms.user.dao.UserDao;
import com.ylpms.user.entity.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Resource;

public class AreaService {

    @Resource
    AreaDao areaDao;

    protected final Logger logger = LoggerFactory.getLogger(this.getClass());

    @TargetDataSource("agme_biz")
    public Table getAllAreaEntity(Table table, User user) {
        return null;
    }
    @TargetDataSource("agme_biz")
    public AreaEntity getAreaEntityById(int id){
        return null;
    }
    @TargetDataSource("agme_biz")
    public AreaEntity getAreaEntityByCode(String areacode){
        return  null;
    }
    @TargetDataSource("agme_biz")
    public int saveAreaEntity(AreaEntity areaEntity){
        return 0;
    }
    @TargetDataSource("agme_biz")
    public int updateAreaEntity(AreaEntity areaEntity){
        return 0;
    }



}
